<!DOCTYPE html>
<html lang="en">

<head>
    <meta charset="UTF-8">
    <meta http-equiv="X-UA-Compatible" content="IE=edge">
    <meta name="viewport" content="width=device-width, initial-scale=1.0">
    <title>Document</title>
    <!-- jquery插件 -->
    <script src="https://code.jquery.com/jquery-3.6.0.min.js"></script>

    <!-- bootstrap插件: -->
    <link rel="stylesheet" href="https://cdn.jsdelivr.net/npm/bootstrap@4.6.1/dist/css/bootstrap.min.css"
        integrity="sha384-p1KAotb3W9ndluCsqePPYnjRm3c6abdnIjo0tQwYUv83VsbsYd43RuofnFAaDo0E" crossorigin="anonymous">
    <script src="https://cdn.jsdelivr.net/npm/jquery@3.5.1/dist/jquery.slim.min.js"
        integrity="sha384-DfXdz2htPH0lsSSs5nCTpuj/zy4C+OGpamoFVy38MVBnE+IbbVYUew+OrCXaRkfj"
        crossorigin="anonymous"></script>
    <script src="https://cdn.jsdelivr.net/npm/bootstrap@4.6.1/dist/js/bootstrap.bundle.min.js"
        integrity="sha384-E5Sj1saJVFNzWWK3YIJB4LEDEEVEGaOdfmCprPDkfWUo+xkb6Ep52Q1TMEtgcFwi"
        crossorigin="anonymous"></script>

    <!-- Highcharts.chart图表插件 -->
    <script src="https://cdn.highcharts.com.cn/highcharts/highcharts.js"></script>
    <script src="https://cdn.highcharts.com.cn/highcharts/modules/exporting.js"></script>
    <script src="https://img.hcharts.cn/highcharts-plugins/highcharts-zh_CN.js"></script>

    <!-- jquery在线插件 -->
    <script src="https://code.jquery.com/jquery-3.6.0.min.js"></script>

    <!-- cdn在线插件 -->
    <script src="https://cdn.staticfile.org/jquery/2.1.1/jquery.min.js"></script>

    <!-- Google CDN: -->
    <script src="http://ajax.googleapis.com/ajax/libs/jquery/1.8.0/jquery.min.js"></script>

    <!-- Microsoft CDN: -->
    <script src="http://ajax.aspnetcdn.com/ajax/jQuery/jquery-1.8.0.js"></script>

    <!-- Staticfile CDN（国内） : vue.js -->
    <script src="https://cdn.staticfile.org/vue/3.0.5/vue.global.js"></script>

    <!-- unpkg：, 会保持和 npm 发布的最新的版本一致。 vue.js-->
    <script src="https://unpkg.com/vue@next"></script>

    <!--cdnjs :  vue.js -->
    <script src="https://cdnjs.cloudflare.com/ajax/libs/vue/3.0.5/vue.global.js"></script>



</head>

<body>
    <!-- ajax工具 -->
    <script name="ajax">
        function Promises(url) {
            return new Promise((resolve, reject) => {
                $.ajax({
                    url,
                    success: function (data) {
                        resolve(data);
                    },
                    error: function (data) {
                        //  console.log("失败")
                    }
                })
            })
        }
        let a = Promises('https://www.fastmock.site/mock/40e170f960701a834866a0bc956002f6/tickets/getAllTypes')
        let b = Promises('https://www.fastmock.site/mock/40e170f960701a834866a0bc956002f6/tickets/getAllArts');
    </script>
</body>

</html>